<%= render :partial => "nav_bar_profile" %>
<%= render :partial => "layouts/top_stories" %>
<div class="left_articles">
<!-- BEGIN CONTENT -->

<img src="/images/bigimage1.gif" align=right style="border:5px #eee solid;">
<h2>Profile: <%=h @user.login %></h2>

<BR><B>Member Since:</B> <%= @user.created_at.strftime('%m/%d/%Y') %>
<% if @user.moderator %>
	<BR><B>Moderator</B>
	<% if logged_in? && current_user.login.eql?("root") %>
		<BR> <%= link_to "Remove moderator privileges", "/users/#{params[:id]}/remove_mod" %>
	<% end %>
<% elsif logged_in? && current_user.login.eql?("root") %>
	<BR> <%= link_to "Give moderator privileges", "/users/#{params[:id]}/make_mod" %>
<%end%>

<BR><BR><b>Stories Participated In</b>
<% @user.get_stories_from_lines.each do |story| %>
      <p class="index_story"><%= link_to story.title, story %> [Rating: <%= story.story_rating %>]
      <BR><span class="index_summary"><%= story.summary %></span>
  <BR><span class="index_details">rating: <%= story.story_rating %> | genre: 
		<% if story.typ %>
			<%= story.typ.downcase %>
		<% else %>
			prose
		<% end %>
	| created by <%= link_to story.user.login, user_path(story.user) %> on <%= story.created_at.strftime('%m/%d/%Y') %></span>
    </p>
<% end %>

<!-- END CONTENT -->
</div>
</div>
<%= render :partial => "layouts/right_bar" %>